import userService from '../service/user.service.js'

class UserController {
    /**
     * @param {import("koa").ParameterizedContext} ctx
     */
    async findById(ctx) {
        const { id } = ctx.user
        ctx.body = await userService.getUserById(id)
    }
}

export default new UserController()
